<?xml version="1.0" encoding="UTF-8" ?>
<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ taglib prefix="ww" uri="/webwork"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions"%>
<%@ taglib prefix="string" uri="http://jakarta.apache.org/taglibs/string-1.1"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<title>The Sunshine - History</title>
<link rel="StyleSheet" href="/css/main.css" type="text/css" media="all" />
<script type="text/javascript" src="/js/jquery.js"></script>
</head>
<body>
<div id="wrap">
	<ww:action name="header" namespace="/" executeResult="true" flush="true" />
	<div id="content">
		<p><a href="list.web?id=${id}&from=${revisionInfoList[fn:length(revisionInfoList) - 1].revision - 1}">earlier</a> | <a href="list.web?id=${id}&to=${revisionInfoList[0].revision + 1}">later</a></p>
		<c:forEach var="history" items="${revisionInfoList}">
		<div style="padding: 0 0 10px 0;">
			<span><b>${history.revision}</b></span>
			<span><i>${history.author}</i></span>
			<span>${history.commitMessage}</span>
			<div>
				<c:forEach var="changedPath" items="${history.changedPathsMap}" varStatus="loopStatus">
					<c:if test="${loopStatus.count le 5}">
						<li style="list-style: none; padding: 0 0 0 10px;">${changedPath.value} - ${changedPath.key}</li>
					</c:if>
				</c:forEach>
				<c:if test="${fn:length(history.changedPathsMap) gt 5}">
					<li style="list-style: none; padding: 0 0 0 10px;"><a href="changeset.web?id=${id}&revision=${history.revision}"> ... ${fn:length(history.changedPathsMap) - 5} more files in changeset.</a></li>
				</c:if>
			</div>
		</div>
		</c:forEach>
	</div>
	<jsp:include page="/WEB-INF/common/footer.jsp" />
</div>
</body>
</html>
